package com.ygxsk.carhome.response;

import android.os.Parcel;
import android.os.Parcelable;

/*
 * @Author:itchenqi175@163.com
 * @Time:2023-07-18  15:18
 * @Description:维修保养的列表的条目信息
 */
public class RepairManageItemBean implements Parcelable {


    /**
     * appointmentId : 2
     * appointmentTime : 2023-08-09 15:00:00
     * appointmentType : 2
     * appointmentTypeInfo : 保养
     * areaId : 0
     * carBrandId : 6
     * carBrandName : 比亚迪
     * carNo : 冀Q12348
     * carSeriesId : 6
     * carSeriesName : 唐
     * createCustomerId : 0
     * createTime : 2023-08-08 14:44:17
     * customerAddress :
     * customerId : 6
     * customerName : 张三
     * handleContent :
     * handleStatus : 0
     * handleStatusInfo : 待处理
     * handleVoList : []
     * isDelete : 0
     * isSend : 1
     * isToDoor : 0
     * managerId : 0
     * managerName :
     * mileage : 0
     * phone : 15022226666
     * shopInfoId : 1495
     * shopName :
     * toDoorInfo : 否
     * vehicleCustomerId : 4
     * vehicleName : 2023旗舰款
     * toDoorTime : 2023-10-08 14:00:00
     */

    private String appointmentId;

    private int appointmentType;
    private String appointmentTypeInfo;
    private transient int areaId;
    private transient int carBrandId;
    private transient String carBrandName;
    private transient String carNo;
    private transient int carSeriesId;
    private transient String carSeriesName;
    private int createCustomerId;
    private transient String createTime;
    private String customerAddress;
    private transient int customerId;
    private String customerName;
    private String handleContent;
    private int handleStatus;
    private String handleStatusInfo;
    private transient int isDelete;
    private int isSend;
    private transient int isToDoor;
    private transient int managerId;
    //顾问姓名
    private transient String managerName;
    private transient int mileage;
    private transient String phone;
    private transient int shopInfoId;
    private String shopName;
    private String toDoorInfo;
    private int vehicleCustomerId;
    private String vehicleName;
    private String toDoorTime;

    //2、显示预约时间：优先展示changeAppointmentTime，如果changeAppointmentTime为空，展示预约日期+预约时段（appointmentTime+expectedPeriod）
    //预约日期  2023-8-28 10:13:40 新增的
    private String appointmentTime;

    //新增的  预约时段
    private String expectedPeriod;
    //改约时间
    private String changeAppointmentTime;

//    private String managerName;


    public String getChangeAppointmentTime() {
        return changeAppointmentTime;
    }

    public void setChangeAppointmentTime(String changeAppointmentTime) {
        this.changeAppointmentTime = changeAppointmentTime;
    }

    public String getExpectedPeriod() {
        return expectedPeriod;
    }

    public void setExpectedPeriod(String expectedPeriod) {
        this.expectedPeriod = expectedPeriod;
    }

    public String getAppointmentId() {
        return appointmentId;
    }

    public void setAppointmentId(String appointmentId) {
        this.appointmentId = appointmentId;
    }

    public String getAppointmentTime() {
        return appointmentTime;
    }

    public void setAppointmentTime(String appointmentTime) {
        this.appointmentTime = appointmentTime;
    }

    public int getAppointmentType() {
        return appointmentType;
    }

    public void setAppointmentType(int appointmentType) {
        this.appointmentType = appointmentType;
    }

    public String getAppointmentTypeInfo() {
        return appointmentTypeInfo;
    }

    public void setAppointmentTypeInfo(String appointmentTypeInfo) {
        this.appointmentTypeInfo = appointmentTypeInfo;
    }

    public int getAreaId() {
        return areaId;
    }

    public void setAreaId(int areaId) {
        this.areaId = areaId;
    }

    public int getCarBrandId() {
        return carBrandId;
    }

    public void setCarBrandId(int carBrandId) {
        this.carBrandId = carBrandId;
    }

    public String getCarBrandName() {
        return carBrandName;
    }

    public void setCarBrandName(String carBrandName) {
        this.carBrandName = carBrandName;
    }

    public String getCarNo() {
        return carNo;
    }

    public void setCarNo(String carNo) {
        this.carNo = carNo;
    }

    public int getCarSeriesId() {
        return carSeriesId;
    }

    public void setCarSeriesId(int carSeriesId) {
        this.carSeriesId = carSeriesId;
    }

    public String getCarSeriesName() {
        return carSeriesName;
    }

    public void setCarSeriesName(String carSeriesName) {
        this.carSeriesName = carSeriesName;
    }

    public int getCreateCustomerId() {
        return createCustomerId;
    }

    public void setCreateCustomerId(int createCustomerId) {
        this.createCustomerId = createCustomerId;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getCustomerAddress() {
        return customerAddress;
    }

    public void setCustomerAddress(String customerAddress) {
        this.customerAddress = customerAddress;
    }

    public int getCustomerId() {
        return customerId;
    }

    public void setCustomerId(int customerId) {
        this.customerId = customerId;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getHandleContent() {
        return handleContent;
    }

    public void setHandleContent(String handleContent) {
        this.handleContent = handleContent;
    }

    public int getHandleStatus() {
        return handleStatus;
    }

    public void setHandleStatus(int handleStatus) {
        this.handleStatus = handleStatus;
    }

    public String getHandleStatusInfo() {
        return handleStatusInfo;
    }

    public void setHandleStatusInfo(String handleStatusInfo) {
        this.handleStatusInfo = handleStatusInfo;
    }

    public int getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(int isDelete) {
        this.isDelete = isDelete;
    }

    public int getIsSend() {
        return isSend;
    }

    public void setIsSend(int isSend) {
        this.isSend = isSend;
    }

    public int getIsToDoor() {
        return isToDoor;
    }

    public void setIsToDoor(int isToDoor) {
        this.isToDoor = isToDoor;
    }

    public int getManagerId() {
        return managerId;
    }

    public void setManagerId(int managerId) {
        this.managerId = managerId;
    }

    public String getManagerName() {
        return managerName;
    }

    public void setManagerName(String managerName) {
        this.managerName = managerName;
    }

    public int getMileage() {
        return mileage;
    }

    public void setMileage(int mileage) {
        this.mileage = mileage;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public int getShopInfoId() {
        return shopInfoId;
    }

    public void setShopInfoId(int shopInfoId) {
        this.shopInfoId = shopInfoId;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public String getToDoorInfo() {
        return toDoorInfo;
    }

    public void setToDoorInfo(String toDoorInfo) {
        this.toDoorInfo = toDoorInfo;
    }

    public int getVehicleCustomerId() {
        return vehicleCustomerId;
    }

    public void setVehicleCustomerId(int vehicleCustomerId) {
        this.vehicleCustomerId = vehicleCustomerId;
    }

    public String getVehicleName() {
        return vehicleName;
    }

    public void setVehicleName(String vehicleName) {
        this.vehicleName = vehicleName;
    }

    public String getToDoorTime() {
        return toDoorTime;
    }

    public void setToDoorTime(String toDoorTime) {
        this.toDoorTime = toDoorTime;
    }






   /* {
        "code": "20000",
            "data": {
        "dataCount": 1,
                "dataList": [
        {
            "appointmentId": 1, //预约维保记录ID
                "appointmentTime": "2023-08-07 10:00:00", //预约时间
                "appointmentType": 1, //1维修；2保养
                "appointmentTypeInfo": "维修", //类别：维修/保养
                "areaId": 0,
                "carBrandId": 6,
                "carBrandName": "比亚迪", //品牌
                "carNo": "冀A12345", //车牌
                "carSeriesId": 1,
                "carSeriesName": "宋plus", //车系
                "createCustomerId": 0,
                "createTime": "2023-08-07 10:34:29", //创建时间
                "customerAddress": "石家庄市裕华区建通街道 塔北路68号", //上门取车地址
                "customerId": 38173,
                "customerName": "张三", //姓名
                "handleContent": "",
                "handleStatus": 0,
                "handleStatusInfo": "待处理", //处理状态
                "handleVoList": [],
            "isDelete": 0,
                "isSend": 1, //是否可以派单：0否；1是
                "isToDoor": 1, //是否上门取车：0否；1是
                "managerId": 0,
                "mileage": 0, //公里数
                "phone": "15076153970", //手机号
                "shopInfoId": 1496, //店铺ID
                "shopName": "",
                "toDoorTime": "2023-08-07 09:00:00", //上门取车时间
                "updateTime": null,
                "vehicleCustomerId": 1, //我的车辆ID
                "vehicleName": "2023款比亚迪宋max" //车辆名称
        }
],
        "nextPagination": -1, //下一页码
                "pagination": 1, //页码
                "paginationCount": 1
    },
        "message": "success"
    }*/


//    //车牌号码
//    private String carNumber;
//
//    //联系人姓名
//    private String personName;
//
//    //联系人手机号
//    private String personPhone;
//
//    //联系人手机号
//    private String timeChoose;
//
//    //单个条目的状态,已分配  已确认  刚预约的状态
//    private String itemState;
//
//    //是预约保养类的还是预约维修类的
//    private String typeRepair;


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.appointmentId);
        dest.writeString(this.appointmentTime);
        dest.writeInt(this.appointmentType);
        dest.writeString(this.appointmentTypeInfo);
        dest.writeInt(this.createCustomerId);
        dest.writeString(this.customerAddress);
        dest.writeString(this.customerName);
        dest.writeString(this.handleContent);
        dest.writeInt(this.handleStatus);
        dest.writeString(this.handleStatusInfo);
        dest.writeInt(this.isSend);
        dest.writeString(this.shopName);
        dest.writeString(this.toDoorInfo);
        dest.writeInt(this.vehicleCustomerId);
        dest.writeString(this.vehicleName);
        dest.writeString(this.toDoorTime);
    }

    public void readFromParcel(Parcel source) {
        this.appointmentId = source.readString();
        this.appointmentTime = source.readString();
        this.appointmentType = source.readInt();
        this.appointmentTypeInfo = source.readString();
        this.createCustomerId = source.readInt();
        this.customerAddress = source.readString();
        this.customerName = source.readString();
        this.handleContent = source.readString();
        this.handleStatus = source.readInt();
        this.handleStatusInfo = source.readString();
        this.isSend = source.readInt();
        this.shopName = source.readString();
        this.toDoorInfo = source.readString();
        this.vehicleCustomerId = source.readInt();
        this.vehicleName = source.readString();
        this.toDoorTime = source.readString();
    }

    public RepairManageItemBean() {
    }

    protected RepairManageItemBean(Parcel in) {
        this.appointmentId = in.readString();
        this.appointmentTime = in.readString();
        this.appointmentType = in.readInt();
        this.appointmentTypeInfo = in.readString();
        this.createCustomerId = in.readInt();
        this.customerAddress = in.readString();
        this.customerName = in.readString();
        this.handleContent = in.readString();
        this.handleStatus = in.readInt();
        this.handleStatusInfo = in.readString();
        this.isSend = in.readInt();
        this.shopName = in.readString();
        this.toDoorInfo = in.readString();
        this.vehicleCustomerId = in.readInt();
        this.vehicleName = in.readString();
        this.toDoorTime = in.readString();
    }

    public static final Parcelable.Creator<RepairManageItemBean> CREATOR = new Parcelable.Creator<RepairManageItemBean>() {
        @Override
        public RepairManageItemBean createFromParcel(Parcel source) {
            return new RepairManageItemBean(source);
        }

        @Override
        public RepairManageItemBean[] newArray(int size) {
            return new RepairManageItemBean[size];
        }
    };
}
